package com.nifostasky.main.reflex.template;

import lombok.Data;

import java.util.List;

/**
 * 学生信息
 */
@Data
public class Student {


    /**
     * 姓名
     */
    private String name;

    /**
     * 学号
     */
    private Integer number;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别 true: 女
     *      false: 男
     */
    private Boolean sex;

    /**
     * 爱好
     */
    List<String> hobbyList;


    /**
     * 地址
     */
    private Address address;

    //无参构造
    public Student(){
        super();
    }

    //有参构造1
    public Student(String name){
        super();
        this.name = name;
    }

    //有参构造2
    public Student(String name,Integer age){
        super();
        this.name = name;
        this.age = age;
    }

    //私有构造 1
    private Student(String name,Integer age,Boolean sex){
        super();
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    //私有构造 2
    private Student(String name,Integer age,Boolean sex,Integer number){
        super();
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.number = number;
    }
}
